﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CRS.Web.BaseData
{
    public partial class GoodsTypeEdit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Expires = -1;
            if (!IsPostBack)
            {
                InitData();
                Session["SelectGoodsType"] = null;
            }
        }

        private void InitData()
        {
            if(Session["SelectGoodsType"]!=null)
            {
                var selectedInfo = (DataRow[])Session["SelectGoodsType"];
                TypeID.Text = selectedInfo[0]["类别编号"].ToString();
                TypeName.Text=selectedInfo[0]["名称"].ToString();
                Memo.Text=selectedInfo[0]["备注"].ToString();
            }
        }
    }
}
